package com.ruoyi.develop.goodsSaleMaterialChild.domain;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.develop.goodsSaleMaterial.domain.GoodsSaleMaterial;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 领料单明细对象 goods_sale_material_child
 *
 * @author lmm
 * @date 2025-08-18
 */
public class GoodsSaleMaterialChild extends BaseEntity {
private static final long serialVersionUID=1L;

    /** 主键 */
    private String id;

    /** 销售产品id */
    @Excel(name = "销售产品id")
    private String gsaleId;

    /** 铁件记录id */
    @Excel(name = "铁件记录id")
    private String ironRecordId;

    /** 铁件详情id */
    @Excel(name = "铁件详情id")
    private String ironDetailId;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 产品/物料id */
    @Excel(name = "产品/物料id")
    private String goodsId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String goodsCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String goodsName;

    /** 物料类型 0-金具 1-产品 */
    @Excel(name = "物料类型 0-金具 1-产品")
    private String goodsType;

    /** 物料型号明细 */
    @Excel(name = "物料型号明细")
    private String goodsBrand;

    /** 物料型号 */
    @Excel(name = "物料型号")
    private String goodModel;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String goodsUnit;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private BigDecimal goodsCount;

    /** 物料单价 */
    @Excel(name = "物料单价")
    private BigDecimal goodsBuyPrice;

    /** 物料总价 */
    @Excel(name = "物料总价")
    private BigDecimal goodsBuyTotal;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 销售人姓名 */
    @Excel(name = "销售人姓名")
    private String saleName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String projectId;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String projectName;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String projectNo;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 领取数量 */
    @Excel(name = "领取数量")
    private BigDecimal lingquCount;

    /** 剩余领取数量 */
    @Excel(name = "剩余领取数量")
    private BigDecimal shengyuCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String factoryGoodssaleId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String factoryProdNo;

    /** 领料单id */
    @Excel(name = "领料单id")
    private String parentId;

    /** 领料单号 */
    @Excel(name = "领料单号")
    private String lingliaoNo;

    List<GoodsSaleMaterial> goodsSaleMaterial;

    private String materialdId;

    public String getMaterialdId() {
        return materialdId;
    }

    public void setMaterialdId(String materialdId) {
        this.materialdId = materialdId;
    }

    public List<GoodsSaleMaterial> getGoodsSaleMaterial() {
        return goodsSaleMaterial;
    }

    public void setGoodsSaleMaterial(List<GoodsSaleMaterial> goodsSaleMaterial) {
        this.goodsSaleMaterial = goodsSaleMaterial;
    }

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setGsaleId(String gsaleId)
            {
            this.gsaleId = gsaleId;
            }

    public String getGsaleId()
            {
            return gsaleId;
            }
    public void setIronRecordId(String ironRecordId)
            {
            this.ironRecordId = ironRecordId;
            }

    public String getIronRecordId()
            {
            return ironRecordId;
            }
    public void setIronDetailId(String ironDetailId)
            {
            this.ironDetailId = ironDetailId;
            }

    public String getIronDetailId()
            {
            return ironDetailId;
            }
    public void setSource(String source)
            {
            this.source = source;
            }

    public String getSource()
            {
            return source;
            }
    public void setGoodsId(String goodsId)
            {
            this.goodsId = goodsId;
            }

    public String getGoodsId()
            {
            return goodsId;
            }
    public void setGoodsCode(String goodsCode)
            {
            this.goodsCode = goodsCode;
            }

    public String getGoodsCode()
            {
            return goodsCode;
            }
    public void setGoodsName(String goodsName)
            {
            this.goodsName = goodsName;
            }

    public String getGoodsName()
            {
            return goodsName;
            }
    public void setGoodsType(String goodsType)
            {
            this.goodsType = goodsType;
            }

    public String getGoodsType()
            {
            return goodsType;
            }
    public void setGoodsBrand(String goodsBrand)
            {
            this.goodsBrand = goodsBrand;
            }

    public String getGoodsBrand()
            {
            return goodsBrand;
            }
    public void setGoodModel(String goodModel)
            {
            this.goodModel = goodModel;
            }

    public String getGoodModel()
            {
            return goodModel;
            }
    public void setGoodsUnit(String goodsUnit)
            {
            this.goodsUnit = goodsUnit;
            }

    public String getGoodsUnit()
            {
            return goodsUnit;
            }
    public void setGoodsCount(BigDecimal goodsCount)
            {
            this.goodsCount = goodsCount;
            }

    public BigDecimal getGoodsCount()
            {
            return goodsCount;
            }
    public void setGoodsBuyPrice(BigDecimal goodsBuyPrice)
            {
            this.goodsBuyPrice = goodsBuyPrice;
            }

    public BigDecimal getGoodsBuyPrice()
            {
            return goodsBuyPrice;
            }
    public void setGoodsBuyTotal(BigDecimal goodsBuyTotal)
            {
            this.goodsBuyTotal = goodsBuyTotal;
            }

    public BigDecimal getGoodsBuyTotal()
            {
            return goodsBuyTotal;
            }
    public void setSupplierId(String supplierId)
            {
            this.supplierId = supplierId;
            }

    public String getSupplierId()
            {
            return supplierId;
            }
    public void setSupplierName(String supplierName)
            {
            this.supplierName = supplierName;
            }

    public String getSupplierName()
            {
            return supplierName;
            }
    public void setSaleName(String saleName)
            {
            this.saleName = saleName;
            }

    public String getSaleName()
            {
            return saleName;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }
    public void setProjectId(String projectId)
            {
            this.projectId = projectId;
            }

    public String getProjectId()
            {
            return projectId;
            }
    public void setProjectName(String projectName)
            {
            this.projectName = projectName;
            }

    public String getProjectName()
            {
            return projectName;
            }
    public void setProjectNo(String projectNo)
            {
            this.projectNo = projectNo;
            }

    public String getProjectNo()
            {
            return projectNo;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setLingquCount(BigDecimal lingquCount)
            {
            this.lingquCount = lingquCount;
            }

    public BigDecimal getLingquCount()
            {
            return lingquCount;
            }
    public void setShengyuCount(BigDecimal shengyuCount)
            {
            this.shengyuCount = shengyuCount;
            }

    public BigDecimal getShengyuCount()
            {
            return shengyuCount;
            }
    public void setFactoryGoodssaleId(String factoryGoodssaleId)
            {
            this.factoryGoodssaleId = factoryGoodssaleId;
            }

    public String getFactoryGoodssaleId()
            {
            return factoryGoodssaleId;
            }
    public void setFactoryProdNo(String factoryProdNo)
            {
            this.factoryProdNo = factoryProdNo;
            }

    public String getFactoryProdNo()
            {
            return factoryProdNo;
            }
    public void setParentId(String parentId)
            {
            this.parentId = parentId;
            }

    public String getParentId()
            {
            return parentId;
            }
    public void setLingliaoNo(String lingliaoNo)
            {
            this.lingliaoNo = lingliaoNo;
            }

    public String getLingliaoNo()
            {
            return lingliaoNo;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("gsaleId",getGsaleId())
            .append("ironRecordId",getIronRecordId())
            .append("ironDetailId",getIronDetailId())
            .append("source",getSource())
            .append("goodsId",getGoodsId())
            .append("goodsCode",getGoodsCode())
            .append("goodsName",getGoodsName())
            .append("goodsType",getGoodsType())
            .append("goodsBrand",getGoodsBrand())
            .append("goodModel",getGoodModel())
            .append("goodsUnit",getGoodsUnit())
            .append("goodsCount",getGoodsCount())
            .append("goodsBuyPrice",getGoodsBuyPrice())
            .append("goodsBuyTotal",getGoodsBuyTotal())
            .append("supplierId",getSupplierId())
            .append("supplierName",getSupplierName())
            .append("saleName",getSaleName())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
            .append("projectId",getProjectId())
            .append("projectName",getProjectName())
            .append("projectNo",getProjectNo())
            .append("status",getStatus())
            .append("lingquCount",getLingquCount())
            .append("shengyuCount",getShengyuCount())
            .append("factoryGoodssaleId",getFactoryGoodssaleId())
            .append("factoryProdNo",getFactoryProdNo())
            .append("parentId",getParentId())
            .append("lingliaoNo",getLingliaoNo())
        .toString();
    }
}
